package com.example.demo6.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;


/**
 * goods对象 goods
 * 
 * @author ruoyi
 * @date 2025-04-03
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品编号 */
    private Long gid;

    /** 编号 */

    private Long cid;

    /** 商品名称 */

    private String gname;

    /** 商品图片 */

    private String gimg;

    /** sn号 */

    private String gsn;

    /** 原价 */

    private BigDecimal price;

    /** 售价 */

    private BigDecimal saleprice;

    /** 描述 */

    private String description;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendtime;

    /** 细节标题 */

    private String detailtitle;
    private String saledum;

    /** 库存 */

    private BigDecimal stock;

    /** 预警库存 */

    private String lowstock;

    /** 单位 */

    private String unit;

    /** 重量 */

    private BigDecimal weight;

    /** 状态 */

    private Long publishstate;

    /** 赠送积分 */

    private Long giftpoint;

    /** 审核状态 */

    private Long verifystate;

    public Date getSendtime() {
        return sendtime;
    }

    public String getSaledum() {
        return saledum;
    }

    public void setSaledum(String saledum) {
        this.saledum = saledum;
    }

    public void setSendtime(Date sendtime) {
        this.sendtime = sendtime;
    }

    public void setGid(Long gid)
    {
        this.gid = gid;
    }

    public Long getGid() 
    {
        return gid;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setGname(String gname) 
    {
        this.gname = gname;
    }

    public String getGname() 
    {
        return gname;
    }
    public void setGimg(String gimg) 
    {
        this.gimg = gimg;
    }

    public String getGimg() 
    {
        return gimg;
    }
    public void setGsn(String gsn) 
    {
        this.gsn = gsn;
    }

    public String getGsn() 
    {
        return gsn;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setSaleprice(BigDecimal saleprice) 
    {
        this.saleprice = saleprice;
    }

    public BigDecimal getSaleprice() 
    {
        return saleprice;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setDetailtitle(String detailtitle) 
    {
        this.detailtitle = detailtitle;
    }

    public String getDetailtitle() 
    {
        return detailtitle;
    }
    public void setStock(BigDecimal stock) 
    {
        this.stock = stock;
    }

    public BigDecimal getStock() 
    {
        return stock;
    }
    public void setLowstock(String lowstock) 
    {
        this.lowstock = lowstock;
    }

    public String getLowstock() 
    {
        return lowstock;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setPublishstate(Long publishstate) 
    {
        this.publishstate = publishstate;
    }

    public Long getPublishstate() 
    {
        return publishstate;
    }
    public void setGiftpoint(Long giftpoint) 
    {
        this.giftpoint = giftpoint;
    }

    public Long getGiftpoint() 
    {
        return giftpoint;
    }
    public void setVerifystate(Long verifystate) 
    {
        this.verifystate = verifystate;
    }

    public Long getVerifystate() 
    {
        return verifystate;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "gid=" + gid +
                ", cid=" + cid +
                ", gname='" + gname + '\'' +
                ", gimg='" + gimg + '\'' +
                ", gsn='" + gsn + '\'' +
                ", price=" + price +
                ", saleprice=" + saleprice +
                ", description='" + description + '\'' +
                ", detailtitle='" + detailtitle + '\'' +
                ", stock=" + stock +
                ", lowstock='" + lowstock + '\'' +
                ", unit='" + unit + '\'' +
                ", weight=" + weight +
                ", publishstate=" + publishstate +
                ", giftpoint=" + giftpoint +
                ", verifystate=" + verifystate +
                '}';
    }
}
